<?php

/**
 * BachkimArtice form.
 *
 * @package    jobeet
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class BachkimArticeForm extends BaseBachkimArticeForm
{
  public function configure()
  {
    unset(
      $this['created_at'], $this['updated_at']
    );
    
    $this->widgetSchema['images'] = new sfWidgetFormInputFile(array(
      'label' => 'Images',
    ));
    
    $this->validatorSchema['images'] = new sfValidatorFile(array(
      'required'   => false,
      'path'       => sfConfig::get('sf_upload_dir').'/images/',
      'mime_types' => 'web_images',
    ));
    
    // su dung Công cụ soạn thảo TinyMCE cho feild: content_detail
    //$this->widgetSchema['content_detail'] =   new sfWidgetFormTextareaTinyMCE();
  }
}
